﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WorkOne.Domain;
using WorkOne.Domain.Model;
using WorkOne.IRepository;

namespace WorkOne.Repository
{
    public class GoodsRepository : BaseRepository<Goods>, IGoodsRepository
    {
        public GoodsRepository(GoodsDbContext db) : base(db)
        {
        }

        public int AddShopCar(Shopcar shopcar)
        {
            db.shopcars.Add(shopcar);
            return db.SaveChanges();
        }
    }
}